//
//  editWatchList.h
//  iStock Global
//
//  Created by Andy on 2010/11/15.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "navcontroller.h"
#import "addStockInWatchList.h"
@protocol editWatchListDelgete;
//UINavigationControllerDelegate,

@interface editWatchList : UITableViewController<addStockInWatchListDelgete>{
   id <editWatchListDelgete> delegate;	
    id AppleDeglate;     
    UINavigationController *navdelegete;	
	
	UITableView *myTable;
	NSMutableArray *array_watchlist_code;
	NSMutableArray *array_watchlist_name;	
	NSMutableArray *array_watchlist_id_class;		
	
	UINavigationBar *nav;	
	//UITextField *addw;
	
	UIButton *editButton;
	UISegmentedControl *segmetnctl; 
	
}

-(id)initWithWatchListCode:(NSMutableArray *)watchlistcode 
			 WatchListName:(NSMutableArray *)watchlistname
		WatchList_id_class:(NSMutableArray *)aWatchList_id_class			
			watchlistTitle:(NSString *)Title;

-(void)editwatchlist;
-(void)addStockInWatchList;
-(void)get_navcontroller:(UINavigationController *)nd;
-(void)editwatchlist_DeleteSort;
 
-(void)savewatchlist;
-(void)savewatchlistok;
 
@property(assign) id AppleDeglate;
@property (nonatomic, assign) id <editWatchListDelgete> delegate;
@end

@protocol editWatchListDelgete
- (void)editWatchListControllerDidFinish:(editWatchList *)controller;

@end
